package com.objectdemo;

public class ObjectDemo2 {
    public static void main(String[] args) {
        /*
        public boolean equals(object obj) 比较两个对象是否相等
         */
        Student student1 = new Student("张三",23);
        Student student2 = new Student("张三",23);
        boolean flag1 = student1.equals(student2);
        System.out.println(flag1);
    }
}
